using System;
using System.Collections;

using System.Data;
using CE.Database;
/// <summary>
/// Summary description for UserProfileDB
/// </summary>
/// 
namespace CE.Refinance
{
    public class HFResultCLFDB
    {
        public HFResultCLFDB()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        /*public Int64 Insert(Template template)
        {
            MyDatabase _db = new MyDatabase();
            Int64 _result = -1;
            string _spName = "[sprocTemplateInsertUpdateSingleItem]";
            
            SortedList _sPara = new SortedList();
            
            #region Parameter
                _sPara.Add("@Status", template.Status);
                _sPara.Add("@Info1", template.Info1);
                _sPara.Add("@Info2", template.Info2);
                _sPara.Add("@Info3", template.Info3);
                _sPara.Add("@Info4", template.Info4);
                _sPara.Add("@Info5", template.Info5);
                _sPara.Add("@Info6", template.Info6);
                _sPara.Add("@Info7", template.Info7);
                _sPara.Add("@Info8", template.Info8);
                _sPara.Add("@Info9", template.Info9);
                _sPara.Add("@Info10", template.Info10);
                _sPara.Add("@Info11", template.Info11);
                _sPara.Add("@Info12", template.Info12);
                _sPara.Add("@Info13", template.Info13);
                _sPara.Add("@Info14", template.Info14);
                _sPara.Add("@Info15", template.Info15);
                _sPara.Add("@Info16", template.Info16);
                _sPara.Add("@Info17", template.Info17);
                _sPara.Add("@Info18", template.Info18);
                _sPara.Add("@Info19", template.Info19);
                _sPara.Add("@Info20", template.Info20);
            #endregion

            _result = _db.ExecuteSP(_spName, _sPara);

            return _result;
        }*/

        public DataTable  GetResultList(Int64 HFID, string ResultType)
        {
            MyDatabase _db = new MyDatabase();
            string _spName = "[sprocHFSelectResultItemList]";

            SortedList _sPara = new SortedList();

            #region Parameter
            _sPara.Add("@HFID", HFID);
            _sPara.Add("@ResultType", ResultType);
            
            #endregion

            return _db.GetDataTableBySP(_spName, _sPara);
        }

        public bool Update()
        {
            return true;
        }

        public bool Delete()
        {
            return true;
        }
        
    }
}